package cn.ruituo.adv3;

import java.util.Date;

public class DateTest {
    public static void main(String[] args) {
        //java.util.Date
        Date d=new Date();
        System.out.println(d);
        System.out.println(d.getTime()+":毫秒数");
        System.out.println(d.getYear()+"年");
        System.out.println(d.getMonth()+"月");
        System.out.println(d.getDate()+"天");
        System.out.println(d.getDay()+":周几");
        System.out.println(">>>>>>>>>>>>>>>>>>");
        Date d2=new Date(System.currentTimeMillis());
        System.out.println(d2);
        Date d3=new Date(0L);
        System.out.println(d3);
    }
}
